package com.mk.common.dao;

import org.nutz.dao.Dao;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;

@IocBean
public class CommonService
{
	@Inject
	Dao dao;

	
	public <T> T insertBasicObj(T basicObj) {
		return dao.insert(basicObj);
	}
	
	public <T> int updateBasicObj(T basicObj) {
		return dao.update(basicObj);
	}
	
}
